var alertText = "模块开发中 请期待！"
//@autuor 龚灵芳
function wait(){
		window.alert(alertText);
		}
		
function comment(){
	var comment = document.getElementById("criticism");
	var commenText = comment.value;
	if(commenText == ""){
	    window.alert("请输入评述内容！谢谢配合~");
		document.forms("commentForm").onsubmit();
	}else{
		document.forms("commentForm").submit();
	}
}

function loginForm(){
	var username = document.getElementById("name").value;
	if(username == "" || username == "请输入账号"){
		window.alert("请输入用户名");
		document.getElementById("loginForm").onsubmit();
	}else{
		var password = document.getElementById("pw").value;
		if(password == ""){
			window.alert("请输入密码");
			document.getElementById("loginForm").onsubmit();
		}else{
			document.getElementById("loginForm").submit();
		}
	}
}
/*顶一下*/
function support(){
	window.alert("支持成功！多谢~");
}
/*踩一下*/
function glimpse(){
	window.alert("有好有坏！更显友爱~~");
}

//电影  电视剧  综艺 MTV切换
function showChange(thisName){
	var item0 = document.getElementById("newMovie");
	var item1 = document.getElementById("newSeries");
	var item2 = document.getElementById("newE");
	var item3 = document.getElementById("newMTV");
	var item4 = document.getElementById("newNotice");
	switch(thisName){
		case "movie":
			item0.style.display = "";
			item1.style.display = "none";
			item2.style.display = "none";
			item3.style.display = "none";
			item4.style.display = "none";
		break;
		case "series":
			item0.style.display = "none";
			item1.style.display = "";
			item2.style.display = "none";
			item3.style.display = "none";
			item4.style.display = "none";
		break;
		case "E":
			item0.style.display = "none";
			item1.style.display = "none";
			item2.style.display = "";
			item3.style.display = "none";
			item4.style.display = "none";
		break;
		case "MTV":
			item0.style.display = "none";
			item1.style.display = "none";
			item2.style.display = "none";
			item3.style.display = "";
			item4.style.display = "none";
		break;
		case "Notice":
			item0.style.display = "none";
			item1.style.display = "none";
			item2.style.display = "none";
			item3.style.display = "none";
			item4.style.display = "";
		break;
	}
}